package com.gooluke.mall.order.controller;

import com.gooluke.mall.api.po.order.TOrderInfo;
import com.gooluke.mall.api.service.order.DubboOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : chennengyuan
 */
@RestController
public class OrderController {

    @Autowired
    private DubboOrderService dubboOrderService;

    /**
     * 查询订单信息
     *
     * @param orderId 订单ID
     * @return
     */
    @GetMapping("/selectOrderInfo")
    public TOrderInfo selectOrderInfo(@RequestParam("orderId") String orderId) {
        return dubboOrderService.selectOrderInfo(orderId);
    }

}
